#import "WXApi.h"
#import "WXApiRequestHandler.h"
#import "WXApiManager.h"
//#import "SendMessageToWXReq+requestWithTextOrMediaMessage.h"
//#import "WXMediaMessage+messageConstruct.h"

@implementation WXApiRequestHandler

#pragma mark - Public Method

+ (BOOL)sendAuthRequestScope:(NSString *)scope
                       State:(NSString *)state
                      OpenID:(NSString *)openID
            InViewController:(id<WXApiManagerDelegate>)viewController {
    SendAuthReq* req = [[SendAuthReq alloc] init];
    req.scope = scope; // @"post_timeline,sns"
    req.state = state;
    req.openID = openID;
    WXApiManager *manager = [WXApiManager sharedManager];
    manager.delegate = viewController;
    return [WXApi sendAuthReq:req viewController:viewController delegate:manager];
}
+ (BOOL)openUrl:(NSString *)url
{
    OpenWebviewReq *req = [[OpenWebviewReq alloc] init];
    req.url = url;
    return [WXApi sendReq:req];
}
@end
